//
//  SectionHeaderViewCollectionReusableView.m
//  B段项目
//
//  Created by 徐茂怀 on 15/11/7.
//  Copyright © 2015年 徐茂怀. All rights reserved.
//

#import "SectionHeaderViewCollectionReusableView.h"
#import "FitHeader.h"
@implementation SectionHeaderViewCollectionReusableView
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createViews];
    }
    return self;
}

-(void)createViews
{
    _titleLabel = [[UILabel alloc]init];
    [self addSubview:_titleLabel];
    
    
    _button = [HeadViewRightButton buttonWithType:UIButtonTypeSystem];
    [self addSubview:_button];
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(20, 0, 200, 50);
    _titleLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:20 * FitWidth];
    
    _button.frame = CGRectMake(self.frame.size.width - 80, 0, 80, 40);
}

@end
